package ws.performancetest.tests.synchronization.db;

import java.util.concurrent.BlockingQueue;

/**
 * This class provides a service to write a test report.
 * 
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
public interface IDBReporter {

  /**
   * Read the tests results stored on the DB.
   * 
   * @return The data returned is the content of the table <i>"Summary"</i>.
   */
  BlockingQueue<DBTestResult> readFromDB(); // FIXME: it shouldn't be used DBInfo, because is not just the contents of summary, but a inner join of the contents of this table with some others tables.
  /**
   * Write the report to a file.
   */
  void writeToFile();
}
